package com.zc.study.designPattern.结构型设计模式.proxyPattern.dynamicProxy;

/**
 * 具体UserDAO:真实角色
 */
public class UserDAO implements AbstractUserDAO {

    @Override
    public boolean findUserById(String userId) {
        if(userId.equalsIgnoreCase("张无忌")){
            System.out.println("查询id为'"+userId+"'的用户信息成功!");
            return true;
        }else {
            System.out.println("查询ID为" + userId +"的用户信息失败!");
            return false;
        }
    }
}
